package cn.ekuma.security.datalogic;

import java.util.List;

import com.openbravo.data.basic.BasicException;

import cn.ekuma.security.bean.I_Permission;

public interface I_DataLogicSecurity {
	public List<I_Permission> loadRolePermission(String roleId,String modeName)  throws BasicException;

	public boolean hasePermissionByRole(String roleId, String modeName,String permission)throws BasicException;
	
	public boolean hasePermissionByRole(String roleId, String modeName,String permission,String childPermission)throws BasicException;
	
    public boolean lock(String askFor,String target, String targetId,String memo);
    
    public boolean unlock(String askFor,String target, String targetId);
    
    public boolean unlockAllbyAskToTarget(String askFor,String target);
    
    public boolean unlockAllbyAsk(String askFor);
}
